package kingwing.dc.core.model;

import java.util.Collection;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;

import com.bstek.dorado.annotation.PropertyDef;

/**
 * 定时器参数
 * @author Kevin
 * 2017年10月18日
 */
@Entity
@Table(name="DC_JOBTIMERULE")
public class JobTimeRule extends BaseEntity {

	/**
	 * 
	 */
	private static final long serialVersionUID = 2649549623956049254L;
	
	@PropertyDef(label="任务名")
	@Column(name="JOB_NAME_",length=60)
	private String jobName;
	
	@PropertyDef(label="定时时间")
	@Column(name="JOB_TIME_",length=60)
	private int jobTime;
	
	@PropertyDef(label="关键词")
	@Column(name="KEY_WORD_",length=125)
	private String keyWord;
	
	@PropertyDef(label="采集页数")
	@Column(name="PAGES_",length=125)
	private int pages;
	
	@Transient
	private Collection<Rule> rules;
	
	public String getJobName() {
		return jobName;
	}

	public void setJobName(String jobName) {
		this.jobName = jobName;
	}

	public int getJobTime() {
		return jobTime;
	}

	public void setJobTime(int jobTime) {
		this.jobTime = jobTime;
	}

	public Collection<Rule> getRules() {
		return rules;
	}

	public void setRules(Collection<Rule> rules) {
		this.rules = rules;
	}

	public String getKeyWord() {
		return keyWord;
	}

	public void setKeyWord(String keyWord) {
		this.keyWord = keyWord;
	}

	public int getPages() {
		return pages;
	}

	public void setPages(int pages) {
		this.pages = pages;
	}

}
